<template>
  <div class="div">
    <div class="menu_aside">
      <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
        @open="handleOpen"
        @close="handleClose"
        background-color="#D3DCE6"
        text-color="#000"
        active-text-color="#3E95FD"
        router
      >
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>会员录入查询</span>
          </template>
          <el-menu-item index="/home/stuInfoEntry">会员信息录入</el-menu-item>
          <el-menu-item index="/home/stuInfoSelect">会员信息查询</el-menu-item>
        </el-submenu>
        <el-menu-item index="2">
          <i class="el-icon-menu"></i>
          <span slot="title">导航二</span>
        </el-menu-item>
        <el-menu-item index="3" disabled>
          <i class="el-icon-document"></i>
          <span slot="title">导航三</span>
        </el-menu-item>
        <el-menu-item index="4">
          <i class="el-icon-setting"></i>
          <span slot="title">导航四</span>
        </el-menu-item>
      </el-menu>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>

<style lang="scss" scoped>
// .body{
//    .el-col,.el-col-12{
//     width: 100%;
//     height: 100%;
//    }
// }
// .el-menu-vertical-demo .el-subumenu{
//     margin: 0;
//     padding: 0;
// }
.div{
  height: 600px;
}
</style>